using UnityEngine;

namespace PKGames
{
	public class GridLayoutCell
	{
		public GameObject _emptyParent;

		private IGridCell _cell;

		public IGridCell cell
		{
			get
			{
				return _cell;
			}
			set
			{
				_cell = value;
				if (_cell != null)
				{
					_cell.Transform.SetParent(_emptyParent.transform);
					_cell.Transform.localPosition = new Vector3(0f, 0f, 0f);
					_cell.Transform.localScale = new Vector3(1f, 1f, 1f);
				}
			}
		}

		public GridLayoutCell(GameObject emptyParent)
		{
			_emptyParent = emptyParent;
		}
	}
}
